<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%
	String which = "待支付处方";
%>
<%@ include file="user_header.jsp"%>
<!-- CONTENT -->
<section id="content">
	<div class="page dashboard-page">
		<!-- bradcome -->
		<section class="boxs">
			<div class="boxs-header">
				<h3 class="custom-font hb-blue">
					<strong>待支付 </strong>处方
				</h3>

			</div>
			<div class="boxs-body">
				<table class="table table-hover">
					<thead>
						<tr>
							<th>#</th>
							<th>处方单号</th>
							<th>待缴金额</th>
							<th>处方生成日期</th>
							<th>操作</th>
						</tr>
					</thead>
					<tbody>
						<%
							int cnt = 1;
							for (PayList plist : list) {
								if (plist.getUserID() == user.getUserID()) {
						%>
						<tr>
							<td><%=cnt++%></td>
							<td><%=String.format("PL%06d", plist.getPayListID())%></td>
							<td><%=plist.getPayCash()%>¥</td>
							<td><%=plist.getPayDate()%></td>
							<td><a href="pay?PayListID=<%=plist.getPayListID()%>"
								class="btn btn-raised btn-success">缴费</a> <a
								href="payListInfo?PayListID=<%=plist.getPayListID()%>&from=needPay"
								class="btn btn-raised btn-info">详情</a></td>
						</tr>
						<%
							}

							}
						%>


					</tbody>
				</table>
			</div>
		</section>
<%@ include file = "PayListInfoFooter.jsp" %>
	</div>
</section>
<%@ include file="/footer.jsp"%>